function detectScrollEdge(ref, direction) {
    if (direction === 'right') {
        return ref.scrollLeft + ref.clientWidth >= ref.scrollWidth;
    } else if (direction === 'left') {
        return ref.scrollLeft === 0;
    }
}
export default detectScrollEdge;